<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="com.shsh.safemanage.action.AdminAction"%>
<%@page import="com.shsh.safemanage.model.Department1PostcheckMapping"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.ProblemDao"%>

<%
{
AdminAction adminAction = ActionCreator.createAdminAction();
boolean isSuccess =  adminAction.browseDepartment1PostcheckMapping(request);
List<Department1PostcheckMapping> mappingList = (List<Department1PostcheckMapping>)request.getAttribute(Constants.REQUEST_ATTRIBUTE_DEPARTMENT1_POSTCHECK_MAPPING_LIST);
%>
<input type="hidden" id="mappingCount" value="<%=mappingList==null?0:mappingList.size()%>" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:12px;">
	<tr>
		<td width="8"  class="appbg">&nbsp;</td>
		<td width="85" class="appbg"><img src="../images/trace.gif"  style="vertical-align:middle;"/>查询结果</td>
		<td width="229" class="appbg">&nbsp;</td>
		<td width="58" class="appbg">&nbsp;</td>
		<td width="84" class="appbg">&nbsp;</td>
		<td width="74" class="appbg">&nbsp;</td>
		<td colspan="2" class="appbg">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan="4" height="40">查询到<font color="#FF0000"><%=mappingList.size()%></font>条记录。</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td class="a_text2" width="40%">岗检</td>
		<td class="a_text2" width="40%" height="30">作业部（业务中心）</td>
		<td width="20%" class="a_text2" align="center">&nbsp;</td>
		<td width="17"></td>
	</tr>
	<%
	for (Department1PostcheckMapping mapping : mappingList) {
	%>
	<tr>
		<td>&nbsp;</td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; background: #F9F9F9">
			<%=mapping.getPostcheckName()%></td>
		<td class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; background: #F9F9F9">
			<%=mapping.getDepart1Name()%></td>
		<td align="center" class="a_text3" style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed; background: #F9F9F9">
			<input type="button" name="delButton" onclick="deleteMapping(<%=mapping.getDepart1ID()%>, <%=mapping.getPostcheckID()%>)" value="删除"/>
		</td>		
		<td width="17"></td>
	</tr>
	<%
	}
	%>
</table>
<%
}
%>